@charset "uft-8";
#main{
    margin: auto;
    width: 800px;
    height: 540px;
    border: 1px solid #ccc;/*边框1像素 实线条 灰色*/
    border-radius: 3px;/*圆角*/
    box-shadow: 0 0 5px #e0e0e0;/*x轴 y轴 5像素阴影*/
    display:flex; /*弹性布局，子容器可以并排显示*/
}
#left{
    width: 80%;
}
#right{
    border-left: 1px solid #ccc;
    width: 20%;
    overflow-y: auto;
    overflow-x: hidden;
}
#records{
    padding: 5px;
    box-sizing: border-box;
    overflow-y: auto;
    height: calc(60% - 1px);
    border-bottom: 1px solid #ccc;
    font-size: 12px;
    font-family: "SF Pro SC","HanHei SC","SF Pro Text","Myriad Set Pro","SF Pro Icons","PingFang SC","Helvetica Neue","Helvetica","Arial",sans-serif;
}
#tools{
    height: 5%;
}
#contents{
    height: 25%;
    outline: none;
    padding: 0px 10px;
    box-sizing: border-box;/**/
    overflow-y: auto;/**/
    word-wrap: break-word;
}
#contents_text{
    width: calc(100% - 4px);
    height: calc(100% - 8px);
    border: none;
    resize: none;
    outline: none;
}
#buttons{
    height: 10%;
    text-align: right;
    padding-right: 10px;
    box-sizing: border-box;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 20px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #9d9d9d;
}
.online{
    line-height: 30px;/*行高*/
    font-family: "SF Pro SC","HanHei SC","SF Pro Text","Myriad Set Pro","SF Pro Icons","PingFang SC","Helvetica Neue","Helvetica","Arial",sans-serif;
    font-size: 14px;
}
.face{
    width: 20%;
    height: 20%;
    border-radius: 50%;
    vertical-align: middle;/*垂直对齐文本*/
    margin-right: 6px;/*距离右边6个像素*/
}
.text1{
    width: 90px;
    display: inline-block;
}
.jainbian{
    position: relative;
    left: -5px;
    width: 10px;
    display: inline-block;
    background: linear-gradient(to right,black,white);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}
.record_face{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: top;
}
.nickname{
    color: #666;
}
.r{
    display: flex;
    float: left;
}
.r_left{
    width: 30px;
    height: 30px;
}
.r_right{
    margin-top: 10px;
}
.message_bg{
    background-color: #ccc;
    padding: 10px;
    border-radius: 5px;
    max-width: 570px;
    word-wrap: break-word;
    display: inline-block;
}
.rr{
    display: flex;
    float: right;
}
.message_bg_me{
    background-color: pink; 
    padding: 10px;
    border-radius: 5px;
    max-width: 570px;
    word-wrap: break-word;
    display: inline-block;
}
.message_line{
    clear: both; 
    height: 45px;
}